package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 az_shop_products
 * 
 * @author liuwp
 * @date 2025-11-24
 */
public class ShopProducts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String imageUrl;

    /** 商品图片多图，逗号分隔 */
    @Excel(name = "商品图片多图，逗号分隔")
    private String imageUrls;

    /** 配置1 */
    @Excel(name = "配置1")
    private String config1;

    /** 配置2 */
    @Excel(name = "配置2")
    private String config2;

    /** 配置3 */
    @Excel(name = "配置3")
    private String config3;

    /** 配置4 */
    @Excel(name = "配置4")
    private String config4;

    /** 配置5 */
    @Excel(name = "配置5")
    private String config5;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 所需积分 */
    @Excel(name = "所需积分")
    private Long pointsPrice;

    /** 原积分 */
    @Excel(name = "原积分")
    private Long originalPrice;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockQuantity;

    /** 每人限购数量 */
    @Excel(name = "每人限购数量")
    private Long maxPerUser;

    /** 状态：0-上架 1-下架 */
    @Excel(name = "状态：0-上架 1-下架", dictType = "sys_yes_no")
    private Integer status;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortOrder;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setImageUrls(String imageUrls) 
    {
        this.imageUrls = imageUrls;
    }

    public String getImageUrls() 
    {
        return imageUrls;
    }
    public void setConfig1(String config1) 
    {
        this.config1 = config1;
    }

    public String getConfig1() 
    {
        return config1;
    }
    public void setConfig2(String config2) 
    {
        this.config2 = config2;
    }

    public String getConfig2() 
    {
        return config2;
    }
    public void setConfig3(String config3) 
    {
        this.config3 = config3;
    }

    public String getConfig3() 
    {
        return config3;
    }
    public void setConfig4(String config4) 
    {
        this.config4 = config4;
    }

    public String getConfig4() 
    {
        return config4;
    }
    public void setConfig5(String config5) 
    {
        this.config5 = config5;
    }

    public String getConfig5() 
    {
        return config5;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setPointsPrice(Long pointsPrice) 
    {
        this.pointsPrice = pointsPrice;
    }

    public Long getPointsPrice() 
    {
        return pointsPrice;
    }
    public void setOriginalPrice(Long originalPrice) 
    {
        this.originalPrice = originalPrice;
    }

    public Long getOriginalPrice() 
    {
        return originalPrice;
    }
    public void setStockQuantity(Long stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Long getStockQuantity() 
    {
        return stockQuantity;
    }
    public void setMaxPerUser(Long maxPerUser) 
    {
        this.maxPerUser = maxPerUser;
    }

    public Long getMaxPerUser() 
    {
        return maxPerUser;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setSortOrder(Long sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() 
    {
        return sortOrder;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("imageUrl", getImageUrl())
            .append("imageUrls", getImageUrls())
            .append("config1", getConfig1())
            .append("config2", getConfig2())
            .append("config3", getConfig3())
            .append("config4", getConfig4())
            .append("config5", getConfig5())
            .append("categoryId", getCategoryId())
            .append("pointsPrice", getPointsPrice())
            .append("originalPrice", getOriginalPrice())
            .append("stockQuantity", getStockQuantity())
            .append("maxPerUser", getMaxPerUser())
            .append("status", getStatus())
            .append("sortOrder", getSortOrder())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
